<include file="Public:head" />
<style>
    tr td{
        text-align: center;
    }
    .more-wrapper a{
        cursor: pointer;
    }
    .shishi{
        margin-left: 20px;
    }
    .mingchen{
        width: 200px;
        overflow: hidden;
        display: inline-block;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .more{
        margin:0px !important;
    }
	#searchin td{
		text-align: right;
		padding-top:5px;
		padding-right:0px
	}
</style>
<body class="overflow-hidden">
<div class="wrapper preload">
    <include file="Public:header" />
    <include file="Public:left" />
    <script>
        $(function () {

            $("#btnPrompt").click(function () {
                SimplePop.prompt("",{
                    type: "confirm",
                    cancel: function(){
                        alert("确定关闭？");
                    },
                    confirm: function(msg){
                        alert(msg);
                    }
                });
            });


        });
    </script>
    <div class="main-container">
        <div class="padding-md">
            <div class="row">
                <div class="col-sm-12">
                    <div class="page-title">
                        机构所有任务
                    </div>
                </div>
            </div>
			<!--<form action="/yzu_kjcx/index.php/Institution/Task/cxtime" method="post">
					<div style="height:300px;MARGIN-TOP:10PX">
						<div style="width:100%;height:40px">
						查新编号：<input type="text" name="cxh" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$cxh?>"> 
						查新员：<input type="text" name="cx_user_name" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$cx_user_name?>">
						</div>
						<div style="width:100%;height:40px">
						委托单位：<input type="text" name="wtdw" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$wtdw?>"> 
						委托人：<input type="text" name="wtrname" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$wtrname?>">
						</div>

						<div style="width:100%;height:50px">
						<span>中文项目名称：<input type="text" name="xmmc" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$xmmc?>"> </span>
						<span>外文项目名称：<input type="text" name="xmmcen" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$xmmcen?>"> </span>
						&nbsp;&nbsp;&nbsp;
						</div>
						<div style="width:100%;height:50px">
						<span>
						查新目的：<select name="cxmd_type" style="height:34px;margin-bottom:10px">
						<option value="0" <?php if($cxmd_type == '0') echo 'selected="selected"';?>>所有目的</option>
						<option value="1" <?php if($cxmd_type == '1') echo 'selected="selected"';?>>科研立项</option>
						<option value="2" <?php if($cxmd_type == '2') echo 'selected="selected"';?>>鉴定、验收、评价</option>
						<option value="3" <?php if($cxmd_type == '3') echo 'selected="selected"';?>>奖励申报</option>
						<option value="4" <?php if($cxmd_type == '4') echo 'selected="selected"';?>>申请专利</option>
						<option value="5" <?php if($cxmd_type == '5') echo 'selected="selected"';?>>博硕士论文开题</option>
						<option value="6" <?php if($cxmd_type == '6') echo 'selected="selected"';?>>其他</option>
					   </select>
					   </span>
					    &nbsp;&nbsp;&nbsp; 
					   <span>
					    分类：<select name="xkfl_type" style="height:34px;margin-bottom:10px">
						<option value="0" <?php if($xkfl_type == '0') echo 'selected="selected"';?>>所有分类</option>
						<option value="614" <?php if($xkfl_type == '614') echo 'selected="selected"';?>>农学</option>
						<option value="613" <?php if($xkfl_type == '613') echo 'selected="selected"';?>>医学</option>
						<option value="612" <?php if($xkfl_type == '612') echo 'selected="selected"';?>>理工学</option>
					   </select>
					   </span>
					   </div>
					   <div style="width:100%;height:50px">
					   <span style="float: left;margin-top: 5px;">委托项目时间 晚于（大于等于）</span>
                       <input type="text" id="B_number1" class="form-control width20" onClick="WdatePicker()" name="intime_13starttime" value="{$intime_13starttime}">
					   <span style="margin-left: 5px;float: left;margin-top: 5px;">早于（小于等于）</span>
                       <input type="text" id="B_number2" class="form-control width20" onClick="WdatePicker()" name="intime_13endtime" value="{$intime_13endtime}">
					   </div>
					   <div style="width:100%;height:50px">
					   <span style="float: left;margin-top: 5px;">完成项目时间 晚于（大于等于）</span>
                       <input type="text" id="B_number1" class="form-control width20" onClick="WdatePicker()" name="intimestarttime" value="{$intimestarttime}">
					   <span style="margin-left: 5px;float: left;margin-top: 5px;">早于（小于等于）</span>
                       <input type="text" id="B_number2" class="form-control width20" onClick="WdatePicker()" name="intimeendtime" value="{$intimeendtime}">
					   </div>
					
					<button type="submit" class="action-button">查询</button> <input type="submit" class="action-button qkong" value="清空">
					</div>
                </form>-->
            <div class="col-sm-12 row chach">
                <form action="__SELF__" method="get">
                   <!-- <div class="right_select">
                        <input name="cxh" type="text" placeholder="查新号" value="{$cxh}"  class="form-control width20" style="width: 150px">
                        <input name="xmmc" type="text" placeholder="项目名称" value="{$xmmc}" class="form-control width20" style="margin-left: 20px;">
                    </div>
                    <button type="submit" class="action-button">查询</button>-->
					
					<div style="height:300px;MARGIN-TOP:10PX">
						<!--<div style="width:100%;height:40px">-->
						<table id='searchin'>
							<tr>
								<td>查新编号：</td>
								<td><input type="text" name="cxh" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$cxh?>"> </td>
								<td>校区：</td>
								<td>
								<select name="sarea"  style="width: 200px;border: 1px solid #ccc;height: 34px;">
									
									<option  value=''>请选择</option>
									<option  value='10' <if condition="$sarea eq 10">selected</if>>南京校区</option>
									<option  value='11' <if condition="$sarea eq 11">selected</if>>常州校区</option>
								</select>
								</td>
							</tr>
							<tr>	
								<td>查新员：</td>
								<td><input type="text" name="cx_user_name" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$cx_user_name?>"></td>
							
								<td>审核员：</td>
								<td><input type="text" name="sh_user_name" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$sh_user_name?>"> </td>
							
							</tr>
							<tr>
								<td>
									委托人：</td>
								<td><input type="text" name="wtrname" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$wtrname?>">
								</td>
								<td>
									委托单位：</td>
								<td><input type="text" name="wtdw" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$wtdw?>"> 
								</td>
								
							</tr>
							<tr>
								<td>
									<span>中文项目名称：</td>
								<td><input type="text" name="xmmc" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$xmmc?>"> </span>
								</td>
								<td>
									<span>外文项目名称：</td>
								<td><input type="text" name="xmmcen" style="width: 200px;border: 1px solid #ccc;height: 34px;" value="<?=$xmmcen?>"> </span>
								</td>
							</tr>
							<tr>
								<td>
									<span style="float: left;margin-top: 5px;">委托项目时间 晚于（大于等于）</span></td>
								<td>
									<input type="text" id="B_number1" class="form-control width20" onClick="WdatePicker()" name="intime_13starttime" value="{$intime_13starttime}">
								</td>
								<td>
									<span style="margin-left: 5px;float: left;margin-top: 5px;">早于（小于等于）</span></td>
								<td>
									<input type="text" id="B_number2" class="form-control width20" onClick="WdatePicker()" name="intime_13endtime" value="{$intime_13endtime}">
								</td>
							</tr>
							<tr>
								<td>
									<span style="float: left;margin-top: 5px;">完成项目时间 晚于（大于等于）</span></td>
								<td>
									<input type="text" id="B_number1" class="form-control width20" onClick="WdatePicker()" name="intimestarttime" value="{$intimestarttime}">
								</td>
								<td>
									<span style="margin-left: 5px;float: left;margin-top: 5px;">早于（小于等于）</span></td>
								<td>
									<input type="text" id="B_number2" class="form-control width20" onClick="WdatePicker()" name="intimeendtime" value="{$intimeendtime}">
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
							</tr>
							
							<tr>
								<td></td>
								<td></td>
								<td></td>
								<td>
									<button type="submit" class="action-button">查询</button>
								</td>
								
							</tr>
						</table>
						
						
					</div>
                </form>
				<if condition="count($g_arr) gt 0">
				<div style="height:40px;margin:10px 0;width:100%;">
				<span style="color:red;font-weight:bold;">重复查新号：</span>
				</div>
				<div style="height:40px;margin:10px 0;width:100%;word-wrap:break-word;">{$g_arr}</div>
				</if>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="smart-widget widget-green">
                        <div class="smart-widget-header row ">
                            <span class="smart-widget-option">
                                <span class="refresh-icon-animated">
                                    <i class="fa fa-spinner fa-spin" style="color:#fff"></i>
                                </span>
                                <a href="#" class="widget-toggle-hidden-option">
                                </a>
                                <a href="#" class="widget-collapse-option" data-toggle="collapse">
                                </a>
                                <a href="#" class="widget-refresh-option">
                                </a>
                            </span>
                        </div>
                        <div class="smart-widget-inner table-responsive">
                            <div class="smart-widget-hidden-section">
                                <ul class="widget-color-list clearfix">
                                    <li style="background-color:#20232b;" data-color="widget-dark"></li>
                                    <li style="background-color:#4c5f70;" data-color="widget-dark-blue"></li>
                                    <li style="background-color:#23b7e5;" data-color="widget-blue"></li>
                                    <li style="background-color:#1fb5ac;" data-color="widget-green"></li>
                                    <li style="background-color:#edbc6c;" data-color="widget-yellow"></li>
                                    <li style="background-color:#fbc852;" data-color="widget-orange"></li>
                                    <li style="background-color:#e36159;" data-color="widget-red"></li>
                                    <li style="background-color:#7266ba;" data-color="widget-purple"></li>
                                    <li style="background-color:#f5f5f5;" data-color="widget-light-grey"></li>
                                    <li style="background-color:#fff;" data-color="reset"></li>
                                </ul>
                            </div>
                            <table class="table table-striped no-margin">
                                <thead>
                                <tr>
                                    <th class="text-center" style="width: 80px">序号</th>
                                    <th class="text-center">项目名称</th>
                                    <th class="text-center" >查新号</th>
                                    <th class="text-center" style="width: 150px">委托人</th>
                                    <th class="text-center" style="width: 150px">委托日期</th>
                                    <th class="text-center" style="width: 150px">处理机构</th>
									<th class="text-center" style="width: 100px">查新员</th>
									<th class="text-center" style="width: 100px">审核员</th>
                                    <th class="text-center" style="width: 100px">已收费用</th>
                                    <th class="text-center" style="width: 100px">查新报告</th>
                                    <th class="text-center" style="width: 200px">处理状态</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="_list" id="vo" key="key" empty="暂无数据">
                                    <tr>
                                        <td>{$key+$num}</td>
                                        <td style="text-align: left">
                                            <div class="more-wrapper <if condition='$vo["process_id"] eq -2'>shishi</if>" >
                                                <span class="mingchen">{$vo.xmmc}</span>
                                                <neq name="vo.process_id" value="-2">

                                                    <div style="display: none;" class="pulldown action-list">
                                                        <div class="content">
                                                            <foreach name="vo.menu_conf" item="vo_menu" >
                                                            <span class="li">
                                                            <if condition="$menu_conf[$vo_menu]['control_type'] eq 'tj'">
                                                                <a title="{$menu_conf[$vo_menu]['title']}" url="{:U('Task/ajax_control')}?action=tj_kjcx_contents&form[menu_id]={$vo_menu}&form[task_id]={$vo['id']}"  class="ajax-get confirm">
                                                                    <elseif  condition="$menu_conf[$vo_menu]['control_type'] eq 'fc'" />
                                                                    <a title="{$menu_conf[$vo_menu]['title']}" onclick="open_fc('{$menu_conf[$vo_menu]['js_fun_param']}',{$menu_conf[$vo_menu]['id']},{$vo['id']})" class="thickbox " url="{:U('Task/myTask')}#TB_inline?height=300&width=550&inlineId=myOnPageContent" >
                                                                        <elseif  condition="$menu_conf[$vo_menu]['control_type'] eq 'link'" />
                                                                        <assign name="js_fun" value="$menu_conf[$vo_menu]['js_fun']" />
                                                                        <a href="__URL__/{$js_fun}/id/{$vo['id']}" target="_self">
                                                                            <elseif  condition="$menu_conf[$vo_menu]['control_type'] eq 'link_blank'" />
                                                                            <assign name="js_fun" value="$menu_conf[$vo_menu]['js_fun']" />
                                                                            <a href="{$js_fun}/id/{$vo['id']}" target="_blank">
                                                                                <elseif  condition="$menu_conf[$vo_menu]['control_type'] eq 'ch'" />
                                                                                <a title="{$menu_conf[$vo_menu]['title']}" url="{:U('Task/ajax_control')}?action=cx_chedan&id={$vo['id']}" class="ajax-get confirm">
                                                                                    <else />
                                                                                    <a href="#">
                                                            </if>
                                                            {$menu_conf[$vo_menu]['title']}
                                                                </a>
                                                            </span>
                                                            </foreach>
                                                        </div>
                                                    </div>
                                                    <span class="more"></span>
                                                </neq>
                                            </div>
                                        </td>
                                        <td>{$vo.cxh}</td>
                                        <td>{$vo.wtrname}</td>
                                        <td title="{$vo.intime}">{$vo.intime|substr=0,-8}</td>
                                        <td>{$vo.department_id|getAgencynameById}</td>
										<td>{$vo.b_cx_user_name}</td>
										<td>{$vo.c_sh_user_name}</td>
                                        <td>{$vo.zfy}</td>
                                        <td>
                                            <if condition="$vo['cx_file_ids']">
                                                <foreach name="vo.fileId" item="file" key="k">
                                                    <a href="{:U('Task/down_file',array('file_id'=>$file['fid']))}"><img src="__IMG__/unit/baogao.png" width='17px;' hright="17px;"></a>&nbsp;
                                                </foreach>
                                            </if>
                                        </td>
                                        <td>
                                            <eq name="vo.process_id" value="-2">
                                                <a href="{:U('Task/call',array('id'=>$vo['id'],'tag'=>'1'))}">抢单</a>
                                                <!--<if condition="$vo.department_id neq 0">-->
                                                <!--<a href="{:U('Task/info',array('id'=>$vo['id']))}">  撤单</a>-->
                                                <!--</if>-->
                                                <else/>
                                                {$vo.process_id|getTitleByProcessId=$depart}
                                            </eq>
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                            <div class="choose-page row">
                                {$_page}
                            </div>
                        </div><!-- ./smart-widget-inner -->
                    </div><!-- ./smart-widget -->
                </div><!-- ./col -->
            </div><!-- ./row -->
        </div><!-- ./padding-md -->
    </div><!-- /main-container -->
    <include file="Public:foot" />
</div><!-- /wrapper -->
<include file="Public/base_fc" />
<a href="#" class="scroll-to-top hidden-print"><i class="fa fa-chevron-up fa-lg"></i></a>
</body>
</html>
<block name="script">
    <script type="text/javascript" src="__PUBLIC__/js/ajaxfileupload.js"></script>
    <script>
        $(function(){
            highlight_nav2('{:U("Task/index")}');
        })
        $('.more-wrapper').hover(
                function () {
                    $(this).find(".action-list").show();
                },
                function () {
                    $(this).find(".action-list").hide();
                }
        );
    </script>
</block>
